package cn.edu.sdjzu.ex07sentinel8012.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UserController {

    @RequestMapping("/test")
    @SentinelResource(value = "test")
    public String test() {
        return "success！";
    }
}
